package com.zhu.exception;

import org.springframework.stereotype.Component;

@Component
public class AppRuntimeException extends RuntimeException {
    private final String code;

    public AppRuntimeException() {
        super();
        this.code = "";
    }

    public AppRuntimeException(String message) {
        super(message);
        this.code = "";
    }

    public AppRuntimeException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
